/*
 * =====================================================================================
 *
 *       Filename:  DummyMalloc.cpp
 *
 *    Description:
 *
 *        Version:  1.0
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Fang Dongheng (fndisme), fndisme@163.com
 *   Organization:
 *
 * =====================================================================================
 */
#include <iostream>
#include <stdlib.h>
#include <cstdio>
#include <cstring>

void dummyMolloc(char* p) {
	p = (char*)malloc(8);
}

int main(int, char**) {
  char str[] = "Hello world";
  dummyMolloc(str);
  strcpy(str, "Hi World\n");
  auto n = printf(str);
  std::cout << n << std::endl;
  char a = 64;
  unsigned char b = 64;
  signed char c = 64;
  a <<= 1;
  b <<= 1;
  c <<= 1;
  a >>= 1;
  b >>= 1;
  c >>= 1;
  std::cout << "a " << static_cast<int>(a) << "b " << static_cast<int>(b)
            << "c " << static_cast<int>(c) << std::endl;
}

